<?php
// class that parses console parameters

class ConsoleParameters {

	protected $orgparams;

	public function __construct($params) {
		$this->orgparams = $params;
		unset($params[0]);
		foreach ($params AS $param) {
			$key = preg_split("/=/", $param);
			$this->$key[0] = $key[1];
		}
	}

}